/**
 * center service
 */

export default {
  path: '/service',
  component: () => import(/* webpackChunkName: 'service' */ '@/views/service'),
  children: [
    // logout
    {
      path: 'logout',
      component: resolve => require(['@/views/service/logout'], resolve),
      meta: { title: '退出登录', hideArrow: true }
    },
    // fav
    {
      path: 'article',
      component: resolve => require(['@/views/service/article'], resolve),
      meta: { title: '种草收藏', hideArrow: false }
    },
    {
      path: 'fav',
      component: resolve => require(['@/views/service/fav'], resolve),
      meta: { title: '我的收藏', hideArrow: false }
    },
    // qrcode (warn: url)
    {
      path: 'qr-code/:referrer_id?',
      component: resolve => require(['@/views/service/qrcode'], resolve),
      meta: { title: '我的推荐码', hideArrow: true }
    },
    // referrer
    {
      path: 'referrer/:referrer_id',
      component: resolve => require(['@/views/service/qrcode/referrer'], resolve),
      meta: { title: '推荐', hideArrow: true }
    },
    // subscribe
    {
      path: 'subscribe',
      component: resolve => require(['@/views/service/subscribe'], resolve),
      meta: { title: '关注公众号', hideArrow: true }
    },
    // about
    {
      path: 'about',
      component: resolve => require(['@/views/service/about'], resolve),
      meta: { title: '关于我们', hideArrow: false }
    },
    // service
    {
      path: 'service',
      component: resolve => require(['@/views/service/service'], resolve),
      meta: { title: '联系客服', hideArrow: false }
    },
    // bank
    {
      path: 'bank',
      component: resolve => require(['@/views/service/bank'], resolve),
      meta: { title: '我的银行卡', hideArrow: true }
    },
    // pay password
    {
      path: 'pay-password',
      component: resolve => require(['@/views/service/pay-password'], resolve),
      meta: { title: '支付密码', hideArrow: true }
    },
    {
      path: 'reset-password',
      component: resolve => require(['@/views/service/pay-password/reset'], resolve),
      meta: { title: '重置密码', hideArrow: true }
    },
    // sign in
    {
      path: 'sign-in',
      component: resolve => require(['@/views/service/sign-in'], resolve),
      meta: { title: '签到', hideArrow: false }
    },
    // address
    {
      path: 'address-list',
      component: resolve => require(['@/views/service/address/list'], resolve),
      meta: { title: '收货地址', hideArrow: false }
    },
    {
      path: 'address-edit/:id?',
      component: resolve => require(['@/views/service/address/edit'], resolve),
      meta: { title: '收货地址', hideArrow: false }
    },
    // refill
    {
      path: 'refill',
      component: resolve => require(['@/views/service/refill'], resolve),
      meta: { title: '充值', hideArrow: false }
    },
    // team
    {
      path: 'team/:type',
      component: resolve => require(['@/views/service/team'], resolve),
      meta: { title: '我的团队', hideArrow: false }
    },
    // group
    {
      path: 'group/:type',
      component: resolve => require(['@/views/service/group'], resolve),
      meta: { title: '我的拼团', hideArrow: false }
    },
    {
      path: 'group-list',
      component: resolve => require(['@/views/service/group/list'], resolve),
      meta: { title: '奖金池', hideArrow: false }
    },
    // commission
    {
      path: 'commission/:type',
      component: resolve => require(['@/views/service/commission'], resolve),
      meta: { title: '我的佣金', hideArrow: false }
    },
    // cash
    {
      path: 'cash/:type',
      component: resolve => require(['@/views/service/cash'], resolve),
      meta: { title: '提现管理', hideArrow: false }
    },
    // comment
    {
      path: 'comment/:id',
      component: resolve => require(['@/views/service/comment'], resolve),
      meta: { title: '评论管理', hideArrow: false }
    },
    {
      path: 'my_comment',
      component: resolve => require(['@/views/service/comment/my'], resolve),
      meta: { title: '我的评论', hideArrow: false }
    },
    // order
    {
      path: 'order/:type',
      component: resolve => require(['@/views/service/order'], resolve),
      meta: { title: '订单列表', hideArrow: false }
    },
    // order express
    {
      path: 'express/:logistics_id',
      component: resolve => require(['@/views/service/express'], resolve),
      meta: { title: '物流', hideArrow: false }
    },
    {
      path: 'offline/:order_id',
      component: resolve => require(['@/views/service/order/offline'], resolve),
      meta: { title: '上传打款凭证', hideArrow: false }
    },
    // material
    {
      path: 'material',
      component: resolve => require(['@/views/service/material'], resolve),
      meta: { title: '素材库', hideArrow: false }
    },
    {
      path: 'transfer',
      component: resolve => require(['@/views/service/transfer'], resolve),
      meta: { title: '转让', hideArrow: false }
    },
    {
      path: 'rank',
      component: resolve => require(['@/views/service/rank'], resolve),
      meta: { title: '排行榜', hideArrow: false }
    },
    {
      path: 'stock',
      component: resolve => require(['@/views/service/store/stock'], resolve),
      meta: { title: '升级', hideArrow: false }
    },
    {
      path: 'sell',
      component: resolve => require(['@/views/service/store/sell'], resolve),
      meta: { title: '审核', hideArrow: false }
    },
    {
      path: 'money',
      component: resolve => require(['@/views/service/money'], resolve),
      meta: { title: '收银系统', hideArrow: false }
    },
    {
      path: 'upload-main',
      component: resolve => require(['@/views/service/money/upload-main'], resolve),
      meta: { title: '上传店面照片', hideArrow: false }
    },
    {
      path: 'upload-product',
      component: resolve => require(['@/views/service/money/upload-product'], resolve),
      meta: { title: '上传产品介绍', hideArrow: false }
    },
  ]
}
